package com.wcbdota.util;

import com.wcbdota.model.Customer;

import android.app.Activity;
import android.content.Context;
import android.content.res.Resources;
import android.util.DisplayMetrics;
import android.view.WindowManager;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;

public class UIUtil {
	// tag for log
//	private static String TAG = UIUtil.class.getSimpleName();
	
	public static String getCustomerInfo (Context ctx, Customer customer) {
		Resources resources = ctx.getResources();
		StringBuffer sb = new StringBuffer();
//		sb.append(resources.getString(R.string.customer_blog));
//		sb.append(" ");
//		sb.append(customer.getBlogcount());
//		sb.append(" | ");
//		sb.append(resources.getString(R.string.customer_fans));
//		sb.append(" ");
//		sb.append(customer.getFanscount());
		return sb.toString();
	}
	
	public static void updateFullscreenStatus(Activity activity, Boolean bUseFullscreen){
		if(bUseFullscreen){
			activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
			activity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
		}
		else {
			activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
			activity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
		}
	}
}